package com.kele.encryption.config;

import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(prefix = "data-encryptor")
public class EncryptionProperties {
    /**
     * 是否启用
     */
    private boolean enable;
    /**
     * 公钥，用来加密，前端有对应的私钥解密
     */
    private String publicKey;
    /**
     * 私钥，用来解密，前端有对应的公钥加密
     */
    private String privateKey;

    public boolean isEnable() {
        return enable;
    }

    public void setEnable(boolean enable) {
        this.enable = enable;
    }

    public String getPublicKey() {
        return publicKey;
    }

    public void setPublicKey(String publicKey) {
        this.publicKey = publicKey;
    }

    public String getPrivateKey() {
        return privateKey;
    }

    public void setPrivateKey(String privateKey) {
        this.privateKey = privateKey;
    }
}
